{% extends 'Washer/index.html' %}

{% block title %}我的{% endblock %}

{% block subject %}
<header>
	<!--首页导航-->
	<ul class="layui-nav" style="display:flex;justify-content:center;">
		<li class="layui-nav-item"><a href="/washer/index" style="font-size:24px;">首页</a></li>
		<li class="layui-nav-item"><a href="/washapp/index" style="font-size:24px;">洗衣</a></li>
		<li class="layui-nav-item"><a href="/community/index" style="font-size:24px;">社区</a></li>
		<li class="layui-nav-item layui-this"><a href="/washer/login" style="font-size:24px;">我的</a></li>
	</ul>
</header>

<main>

	<div style="margin:10px auto;font-size:22px;color:#A52A2A;background-color:#e3e5e8;">
		{% load static %}
		<div style="display:flex;justify-content:center;"><img src="{% static 'img/warning64.png' %}" alt="异常警告！"></div>
		<div style="margin:0 auto;display:flex;flex-direction:column;align-items:center;">
			<div>因为您刚刚删除了当前设备状态为True的对应订单！</div>
			<div>所以我们无法从服务器查询到与这些设备对应的订单！</div>
			<div>请务必注销状态为True且查询不到对应订单的洗衣机设备！</div>
		</div>

	</div>
	<div class="equipments" style="width:60%;margin:20px auto;box-shadow:0px 0px 3px #000000;">
		<table class="layui-table" lay-even>
			<caption style="font-size:26px;color:#1E90FF;margin:0 auto;background-color:#e3e5e8;">当前未关闭的设备</caption>
			<tr>
				<th>序号</th>
				<th>设备号</th>
				<th>设备状态</th>
				<th>最近使用</th>
				<th>出厂时间</th>
				<th>操作</th>
			</tr>
			{% for i in wash_1.values %}
			<tr>
				<td>{{ forloop.counter }}</td>
				<td>{{ i.wmid }}</td>
				<td>{{ i.wmstate }}</td>
				<td>{{ i.wmupdate_time }}</td>
				<td>{{ i.wmcreate_time }}</td>
				<td>
					<a style="font-size:18px;color:#DC143C;" href="/washer/delwasher/{{i.wmid}}"
						onclick="return confirm('\n此操作不可逆！\n\r确认注销该设备？')">注销</a>
				</td>
			</tr>
			{% empty %}
			<tr>
				<td>查</td>
				<td>询</td>
				<td>不</td>
				<td>到</td>
				<td>设</td>
				<td>备</td>
			</tr>
			{% endfor %}
		</table>
	</div>

</main>

<footer>

</footer>
{% endblock %}
